<?php
/**
 * @version		$Id: default.php 21322 2011-05-11 01:10:29Z dextercowley $
 * @package		Joomla.Site
 * @subpackage	mod_login
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;

?>
<div class="div_wrd_product_category">
	<table class="tbl_wrd_product_category">
		<tr>
		<?php  
		$i=0;
		foreach($list_pro_cat as $cats):
			if(($i!=0) && ($i%4 ==0)):
		?>
			</tr>
			<tr>
		<?php 
			endif;
		?>
			<td>
				<table>
					<tr>
						<td class="p_cat">
							<center>
								 <a href = "index.php?option=com_wrd&view=redemption&layout=products&cid=<?php echo $cats->id ; ?>&Itemid=125">
		                            <img src="images/wrd/product_category/<?php if(!empty($cats->title)){ echo strtolower( $cats->title ) ; }else {  echo "default" ; } ?>.jpg" alt="<?php echo $cats->title ; ?>" title="<?php echo $cats->title ; ?>" />
		                            <span class="link_color"><?php echo $cats->title ; ?></span>
	                        	</a>
	                        </center>
						</td>
					</tr>
				</table>
			</td>
		<?php 
			$i++;
		endforeach;
		?>
		</tr>
	</table>
</div>
